package cn.cs.message.tempstorage;

import java.util.Iterator;

import cn.cs.message.Message;

public interface TempStorage
{
	public void add(Message msg);
	public void clear();
	
	public void setListener(TempStorageEventListener listener);
	public void init();
	public TempStorage newTempStorage();
	
	public Iterator<Message> iterator();
	public boolean hasMsg();
	public long size();
}

